package exam.business.service;

import java.util.List;

import exam.common.constant.ResultPort;
import exam.common.key.KeyUser;
import exam.model.dao.TUserDAO;
import exam.model.entity.TUserEntity;
import exam.system.business.AbstractService;
import exam.system.business.BusinessServiceInfo;
/**
 * <p>UserGetListService</p>
 * <p>Lay danh sach nguoi dung</p>
 * 
 * @author Phong
 * @version 19/5/2012
 */
public class UserGetListService extends AbstractService {
	private TUserDAO tUserDAO = new TUserDAO();
	@Override
	public String executeService(BusinessServiceInfo serviceInfo)
			throws Exception {
		// Goi phuong thuc lay danh sach nguoi dung
		List<TUserEntity> tUserEntityList = tUserDAO.selectListUser();
		// Put danh sach nguoi dung vao thong tin serviceInfo
		serviceInfo.put(KeyUser.T_USER_ENTITY_LIST, tUserEntityList);
		return ResultPort.SUCCESS;
	}

}
